package com.allwees.bs.module.pms.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @Author Daniel
 * @Version 1.0.0
 * @Description
 * @CreateTime 2020/9/16 11:15
 */
@TableName("prod_flash_days")
@Data
public class ProductFlashDays {
    private static final long serialVersionUID = 2985677686300154282L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String productUuid;

    private Integer marketingDay;

    private Integer status;

    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    protected Date updatedAt;

    public ProductFlashDays() {
    }

    public ProductFlashDays(String productUuid, Integer marketingDay) {
        this.productUuid = productUuid;
        this.marketingDay = marketingDay;
    }
}
